package cn.stylefeng.guns.modular.shi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商品种草表
 * </p>
 *
 * @author 石博士
 * @since 2019-11-15
 */
@Data
@TableName("s_recommend")
public class SRecommend implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 种草表id
     */

    private Long id;

    /**
     * 商品名称id
     */
    @TableId("name_id")
    private String nameId;


    /**
     * 商品名称
     */
    @TableField("names")
    private String names;

    /**
     * 添加时间
     */
    @TableField("adding_time")
    private Date addingTime;

    /**
     * 图片地址URL
     */
    @TableField("pictures_url")
    private String picturesUrl;

    /**
     * 评价人的 openid
     */
    @TableField("openid")
    private String openid;

    /**
     * 点赞数量
     */
    @TableField("dz_total")
    private Long dzTotal;


    /**
     * 评论数量
     */
    @TableField("evaluation_quantity")
    private Long evaluationQuantity;


    /**
     * 商品内容
     */
    @TableField("contents")
    private String contents;


    /**
     * 是否点赞 0未点赞，1已点赞
     */
    @TableField("thumb")
    private Long thumb;


    /**
     * 状态 0未种草，1已种草
     */
    @TableField("status")
    private String status;




    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNameId() {
        return nameId;
    }

    public void setNameId(String nameId) {
        this.nameId = nameId;
    }

    public String getNames() {
        return names;
    }

    public void setNames(String names) {
        this.names = names;
    }

    public Date getAddingTime() {
        return addingTime;
    }

    public void setAddingTime(Date addingTime) {
        this.addingTime = addingTime;
    }

    public String getPicturesUrl() {
        return picturesUrl;
    }

    public void setPicturesUrl(String picturesUrl) {
        this.picturesUrl = picturesUrl;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getDzTotal() {
        return dzTotal;
    }

    public void setDzTotal(Long dzTotal) {
        this.dzTotal = dzTotal;
    }

    public Long getEvaluationQuantity() {
        return evaluationQuantity;
    }

    public void setEvaluationQuantity(Long evaluationQuantity) {
        this.evaluationQuantity = evaluationQuantity;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }


    public Long getThumb() {
        return thumb;
    }

    public void setThumb(Long thumb) {
        this.thumb = thumb;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }





    @Override
    public String toString() {
        return "SRecommend{" +
        "id=" + id +
        ", nameId=" + nameId +
        ", names=" + names +
        ", addingTime=" + addingTime +
        ", picturesUrl=" + picturesUrl +
        ", openid=" + openid +
        ", dzTotal=" + dzTotal +
        ", evaluationQuantity = "+ evaluationQuantity +
        ", contents = "+ contents +
        ", thumb = "+ thumb +
        ", status = "+ status +
        "}";
    }
}
